<template>
	<view>
		<view class="">{{ userInfo.depart_name }}</view>
		<view class="">{{ userInfo.student_number }}</view>
	</view>
</template>

<script>
		import { getUserInfo } from '../../api/user.js'
	export default {
		data() {
			return {
				userInfo: {}
			}
		},
		onLoad() {
			this.getUserInfo()
		},
		methods: {
			async getUserInfo(){
				const { data: res } = await getUserInfo()
				this.userInfo = res.data
			}
		}
	}
</script>

<style>

</style>
